{% extends "base.html" %}

{% block title %}{{ block.super }} - Auto-Add Friends{% endblock %}
{% block header %}Auto-Add Friends{% endblock %}

{% block content %}
{% if identity %}
    {% if has_friends_to_add %}
        <h3>Check the box next to the friends that you would like to add.</h3>
        <form method="POST" action="">
            <ul>
                {{ form.as_ul }}
                <li><input id="submit" type="submit" value="Add Friends"></li>
            </ul>
        </form>
    {% else %}
        <p>Sorry, but all of your friends have already been added.</p>
    {% endif %}
{% else %}
    <p>Sorry, but there is no automatically-addable information for you on the internet.  Please first check to make sure that your <a href="{% url sreg_profile %}">User Profile</a> contains a link to your website and that that website contains <a href="http://www.gmpg.org/xfn/">XFN</a> markup.</p>
{% endif %}
{% endblock %}

{% block bottomnav %}
<li><a href="{% url sreg_friend_list %}">Back to Friend List</a></li>
{% endblock %}